import request from '@/utils/request'
// -------- 图片管理 --------

let BASE_ADDRESS = 'work/photo'

//  分页查询
export function getPhotoistApi(params) {
    return request({
        url: `${BASE_ADDRESS}/list`,
        method: "get",
        params
    })
}

//  删除
export function getPhotoRemoveApi(data) {
    return request({
        url: `${BASE_ADDRESS}/remove/${data}`,
        method: "delete",

    })
}

//  添加
export function getPhotoAddApi(data) {
    return request({
        url: `${BASE_ADDRESS}/add`,
        method: "post",
        data
    })
}